package com.dxl;

import com.dxl.rest.LogController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: 获取配置文件的类
 *
 * @author: Yingyu Wei
 * <p>File Created at 2021/4/4</p>
 */
@RestController
//@Slf4j //lomnok的注解
public class Log2Controller {
    private Logger log = LoggerFactory.getLogger(LogController.class);

    @GetMapping("/log2")
    public String getValues() {
        String appid1 = "2";
        String appid2 = "2";
        String appid3 = "2";
        log.debug("我是debug日志.......");
        log.info("我是info日志...{}..{}..{}", appid1, appid2, appid3);
        log.warn("我是warn日志.......");
        log.error("我是error日志.......");
        return null;
    }
}
